home *** CD-ROM | disk | FTP | other *** search
/ Ham Radio 2000 #2 / Ham Radio 2000 - Volume 2.iso / HAMV2 / TCP_IP / TNOS230S / X.H < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-24  |  985 b   |  50 lines

  1. #ifndef _X_H_
  2. #define _X_H_
  3.  
  4. #ifdef XSERVER
  5.  
  6. #ifndef    _TIMER_H
  7. #include "timer.h"
  8. #endif
  9.  
  10. struct xcontrol {
  11.     int        s;        /* socket for status info */
  12.     char        *host;        /* host info */
  13.     int        txstatusinfo;    /* do we TX status info? */
  14.     struct xcontrol *next;
  15. };
  16.  
  17. #define NULLX ((struct xcontrol *)0)
  18.  
  19. struct xhost {
  20.     char    *host;        /* host info */
  21.     struct xhost *next;
  22. };
  23.  
  24. #define NULLXHOST ((struct xhost *)0)
  25.  
  26. #define X_BBS        1
  27. #define X_CONF        2
  28. #define X_FTP        4
  29. #define X_TUT        8
  30. #define X_MSG        16
  31. #define X_HOLD      32
  32. #define X_ALERT     64
  33. #define X_SCREEN    128
  34. #define X_ALL    (X_BBS | X_CONF | X_FTP | X_TUT | X_MSG | X_HOLD | X_ALERT | X_SCREEN)
  35.     
  36.  
  37. void xnotify (int which);
  38. int xserver0 (int argc, char *argv[], void *p);
  39. int xserver1 (int argc, char *argv[], void *p);
  40. int doxwindows (int argc, char *argv[], void *p);
  41.  
  42. #define Xupdateinit 5
  43. #define SCMD "~tk~"
  44. #define ECMD "~\n"
  45.  
  46. #else
  47. #include <stdio.h>
  48. #endif /* XSERVER */
  49. #endif /* _X_H_ */
  50.